package com.hippy.erya.base.auth.context;

import com.hippy.erya.base.auth.model.LoginUser;

import java.util.List;


public interface LoginContext {


    LoginUser getUser();


    String getToken();


    boolean hasLogin();


    Long getUserId();


    boolean hasRole(String roleName);


    boolean hasAnyRoles(String roleNames);


    boolean hasPermission(String permission);

    boolean isAdmin();

    boolean oauth2Flag();


    List<Long> getDeptDataScope();

}
